package com.zrrd.utils;

import com.zrrd.service.UserService;
import com.zrrd.service.impl.UserServiceImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author WanJl
 * @version 1.0
 * @title UserServiceFactoryBean
 * @description
 * @create 2024/1/25 15:45
 */
public class UserServiceFactoryBean implements FactoryBean<UserService> {
    @Override
    public UserService getObject() throws Exception {
        System.out.println("通过UserServiceFactoryBean对象获取的UserService对象.....");
        return new UserServiceImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return UserService.class;
    }
}
